Contribution org.nuxeo.ecm.platform.forum.layouts--widgets
In component org.nuxeo.ecm.platform.forum.layouts
org.nuxeo.ecm.platform.forum.layouts
inside nuxeo-platform-forum-7.10.jar /OSGI-INF/forum-layouts-listing-contrib.xml
This contribution is part of XML component Extension Point
Extension point widgets of component WebLayoutManager.Contributed Items
XML Source
<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
<widget name="forum_thread_listing_title_link" type="listing_title_link">
<labels>
<label mode="any">label.forum.content.header.thread</label>
</labels>
<translated>true</translated>
<fields>
<field>data</field>
<field>data.ref</field>
<field>data.dc.description</field>
</fields>
</widget>
<widget name="forum_thread_listing_last_post" type="forum_post_info">
<labels>
<label mode="any">label.forum.content.header.last_added</label>
</labels>
<translated>true</translated>
<fields>
<field>
#{threadAction.getAdapter(layoutValue.data).lastPublishedPost}
</field>
</fields>
</widget>
<widget name="forum_thread_listing_nb_published_posts" type="int">
<labels>
<label mode="any">label.forum.content.header.nb_published_posts</label>
</labels>
<translated>true</translated>
<fields>
<field>
#{threadAction.getAdapter(layoutValue.data).publishedPosts.size()}
</field>
</fields>
</widget>
<widget name="forum_thread_listing_nb_pending_posts" type="int">
<labels>
<label mode="any">label.forum.content.header.nb_pending_posts</label>
</labels>
<translated>true</translated>
<fields>
<field>
#{threadAction.getAdapter(layoutValue.data).pendingPosts.size()}
</field>
</fields>
</widget>
<widget name="forum_thread_listing_moderation" type="checkbox">
<labels>
<label mode="any">label.forum.content.header.moderated</label>
</labels>
<translated>true</translated>
<fields>
<field>data.thread.moderated</field>
</fields>
</widget>
</extension>